From: Owen Taylor Date: Fri, 31 Oct 2008 18:12:03 +0000 (+0000) Subject: Switch the HH:MM:SS second clock to HH:MM X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~11629 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6b9379a938b9febc07d9dfec1a7e604dab1a5ecd;p=gnome-shell.git Switch the HH:MM:SS second clock to HH:MM less updates == less debug spew. svn path=/trunk/; revision=11 --- diff --git a/js/ui/panel.js b/js/ui/panel.js index 6b1a92840..85fe95e1c 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -53,7 +53,7 @@ Panel.prototype = { _startClock: function() { let me = this; - Mainloop.timeout_add_seconds(1, + Mainloop.timeout_add_seconds(60, function() { me._updateClock(); return true; @@ -61,7 +61,7 @@ Panel.prototype = { }, _updateClock: function() { - this._clock.set_text(new Date().toLocaleFormat("%H:%M:%S")); + this._clock.set_text(new Date().toLocaleFormat("%H:%M")); this._clock.set_anchor_point_from_gravity(Clutter.Gravity.NORTH_EAST); return true;